<template>
	<view class="w100 h100">
		<qiun-data-charts v-if="show" v-bind="$attrs" />
		<u-empty mode="data" text="暂无数据..." v-else />
	</view>
</template>

<script setup name="my-charts">
	const show = ref(true),
		attrs = useAttrs();

	watch(() => attrs.chartData, (val) => {
		if (!val?.series?.length) show.value = false
	})
</script>

<style lang="scss" scoped>

</style>